package com.heu.blood.security.exception;

import com.heu.blood.globalExceptionHandler.BaseErrorInfoInterface;

/**
 * @ClassName UserLoginException
 * @Description 用户登录失败的异常信息
 * @Author lyj
 * @Date 2025/3/12 23:43
 */
public enum UserLoginException implements BaseErrorInfoInterface {
    PASSWORD_ERROR("PASSWORD_ERROR","密码错误"),
    NO_USER("NO_USER","用户不存在");

    UserLoginException(String resultCode,String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    // 错误码
    private final String resultCode;

    // 错误提示
    private final String resultMsg;
    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
